package com.controller
{
	import com.view.mediator.ApplicationMediator;
	import com.ApplicationFacade;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import org.puremvc.as3.multicore.utilities.statemachine.StateMachine;

	public class ViewPrepCommand extends SimpleCommand
	{
		override public function execute(note:INotification):void
		{
			var app:PureFormSubmission=note.getBody() as PureFormSubmission;
			facade.registerMediator(new ApplicationMediator(note.getBody() as PureFormSubmission));
			sendNotification(StateMachine.ACTION, "WELCOMING", ApplicationFacade.SHOW_WELCOME);
		}
	}
}